import 'dart:convert';

import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/safe_real_time_monitor_page_entity.g.dart';

export 'package:safetymonitor/generated/json/safe_real_time_monitor_page_entity.g.dart';

@JsonSerializable()
class SafeRealTimeMonitorPageEntity {
  SafeRealTimeMonitorPageEntity();

  factory SafeRealTimeMonitorPageEntity.fromJson(Map<String, dynamic> json) => $SafeRealTimeMonitorPageEntityFromJson(json);

  int? id;
  int? companyId;
  String? companyName;
  int? pointId;
  String? point;
  String? deviceCode;
  int? alarmType;
  int? alarmLevel;
  double? val;
  String? alarmStartTime;
  String? alarmEndTime;
  int? status;
  int? disposalMethod;
  String? disposalMeasures;
  String? disarmingDescription;
  String? disposalMeasuresAnnex;
  String? disarmingDescriptionAnnex;
  int? alramMinimum;
  String? createTime;
  String? monitorName;
  String? systemName;
  int? dataType ;

  String? disposalStatus;
  String? categoryZh;
  /// 报警时长 分钟
 String? alarmTimeMin;
  /// 1、督办派发 2、督办处置 3、派发 0、无操作按钮权限
  late String supervisionStatusStr = '';
  late int systemId = 0;
  Map<String, dynamic> toJson() => $SafeRealTimeMonitorPageEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
